/*
 * 作者：姚俊
 * 功能：删除一个创新团队的action
 * 日期：2015-05-30
 */
package admin.action.InnPlatform;

import admin.bean.Innovations;
import admin.service.subject.InnovationService;

public class DelInnovationsAction {
	
	public String deleted;
	private Innovations innovations;

	public Innovations getInnovations() {
		return innovations;
	}

	public void setInnovations(Innovations innovations) {
		this.innovations = innovations;
	}
	
	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}

	public String execute()
	{
		this.setDeleted("err");
		new InnovationService().deleteInnovations(this.getInnovations());
		this.setDeleted("succ");
		return "succ";
	}

}
